package com.hzncc.flowable_diboot.entity.contractmanage;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.lang.Double;
import java.math.BigDecimal;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.diboot.core.util.D;
import com.diboot.core.entity.BaseModel;
import com.diboot.core.entity.BaseEntity;
import com.diboot.core.binding.query.BindQuery;
import com.diboot.core.binding.query.Comparison;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 合同文件管理 Entity 定义
 * @author MyName
 * @version 1.1
 * @date 2024-12-30
 * Copyright © MyCorp
 */
@TableName("mdl_contract_document_management")
@Getter
@Setter
@Accessors(chain = true)
public class ContractDocumentManagement extends BaseModel {

    private static final long serialVersionUID = 1827046586531395131L;

    /**
     * 租户
     */
    @NotNull(message = "租户不能为空")
    @TableField()
    private String tenantId;

    /**
     * 合同编码
     */
    @Length(max = 100, message = "合同编码长度应小于100")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contractCode;

    /**
     * 合同id
     */
    @Length(max = 32, message = "合同id长度应小于32")
    @BindQuery(comparison = Comparison.LIKE)
    @TableField()
    private String contactId;

    /**
     * 文件id
     */
    @TableField()
    private String fileId;

    /**
     * 文档类型
     */
    @TableField()
    private String docType;

    /**
     * 文件数量
     */
    @TableField()
    private Long fileNum;

    /**
     * 归档状态
     */
    @TableField()
    private String archiveStatus;

    /**
     * 客户名称
     */
    @Length(max = 100, message = "客户名称长度应小于100")
    @TableField()
    @BindQuery(comparison = Comparison.LIKE)
    private String customerName;

    /**
     * 发票号
     */
    @Length(max = 100, message = "发票号长度应小于100")
    @TableField()
    private String invoiceNo;

}
